import {get, post} from "../utils/request.js";

export const User = {
    // 上传头像
      uploadAvatar:(data,config) => {
        return post('/a_user/a_info-headerPic/index.html', data,config);
    },
    // 修改昵称
    updateNickname:(params) => {
        return get('/a_user/a_info-userName/index.html',params);
    },
    // 修改个人简介
    updateUserScript:(params) => {
        return get('/a_user/a_info-userScript/index.html',params);
    },
    // 修改邮箱
    updateEmail:(params) => {
        return get('/a_user/a_info-email/index.html',params);
    },
    // 获取手机短信
    getPhoneCode:(params) => {
        return get('/a_user/a_info-phone/index.html',params);
    },
    // 更换手机号
    updatePhone:(params) => {
        return get('/a_msg/a_phonemsg-getMsg/index.html',params);
    },
    // 修改密码
    changePassword:(params) => {
        return post('/a_user/a_info-pwd/index.html',params);
    },
}
